package com.qidian.mes.controller;

import com.qidian.mes.service.WorkOrderBomService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/workOrderBom")
@CrossOrigin
public class WorkOrderBomController {
    @Autowired
    private WorkOrderBomService workOrderBomService;

    @GetMapping("/list")
    public MESResult list(Long workOrderId){
        return workOrderBomService.list(workOrderId);
    }

}
